﻿@model FieldControlViewModel
@{
	string layText = "是|否";
	if (Model.Settings.Count >= 2)
	{
		layText = Model.Settings[0] + "|" + Model.Settings[1];
	}
	string check = (Model.FieldValue.ToBoolean()) ? "checked=\"checked\"" : string.Empty;
}
<div class="layui-input-inline">
	<input type="checkbox" name="@Model.Prefix@Model.FieldName" id="@Model.Prefix@Model.FieldName" lay-skin="switch" lay-text="@layText" @check>
</div>
<div class="layui-input-inline layui-input-company">
	<span class="layui-bg-green">@Model.Description</span>
</div>